package com.stone.springboot.Test.global;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by stone on 2017/8/25.
 */
@ControllerAdvice
public class GobalException {

	@ExceptionHandler(value = Exception.class)
	public void exceptionHandler(Exception e, HttpServletRequest request){
		System.out.println(e);
	}
}
